package com.frame.pageform.job;

import java.util.List;

import com.frame.pageform.FrameInit;

public class JobInitFrame implements FrameInit{

	public final Schedule schedule= new Schedule();

	public void init(){
		List jobs=new XmlJobLoader().load();
		if(jobs.size()>0){
			schedule.start();
			System.out.println("开始加载任务....");
			for(int i=0;i<jobs.size();i++){
				Job job=(Job)jobs.get(i);
				schedule.addJob(job);
			}
		}
	}

}
